import java.io.IOException;
import java.io.PrintWriter;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;


public class Login extends HttpServlet{
 
protected void doPost(HttpServletRequest req, HttpServletResponse resp)
		throws ServletException, IOException {
	String username = req.getParameter("UserName");
	String password = req.getParameter("Password");
	System.out.println("UserName == "+username);
	if(true){
		throw new RuntimeException(); 
	}
	
	System.out.println("password == "+password);
	
	PrintWriter out = resp.getWriter();
	out.println("<h1>UserName == "+username);
	out.println("<h1>Password == "+password);
	
}
}
